SYSTEM     = x86-64_sles10_4.1
LIBFORMAT  = static_pic

#------------------------------------------------------------
#
# When you adapt this makefile to compile your CPLEX programs
# please copy this makefile and set CPLEXDIR and CONCERTDIR to
# the directories where CPLEX and CONCERT are installed.
#
#------------------------------------------------------------
#CPLEXDIR      = /home/lmin/ILOG/CPLEX_Studio_AcademicResearch122/cplex
#CONCERTDIR    = /home/lmin/ILOG/CPLEX_Studio_AcademicResearch122/concert

CPLEXDIR      = /opt/ILOG/CPLEX_Studio_AcademicResearch122/cplex
CONCERTDIR    = /opt/ILOG/CPLEX_Studio_AcademicResearch122/concert

#CPLEXDIR      = /filespace/groups/ece/shared/ILOG/CPLEX_Studio_AcademicResearch122/cplex
#CONCERTDIR    = /filespace/groups/ece/shared/ILOG/CPLEX_Studio_AcademicResearch122/concert
# ---------------------------------------------------------------------
# Compiler selection 
# ---------------------------------------------------------------------

CCC = g++

# ---------------------------------------------------------------------
# Compiler options 
# ---------------------------------------------------------------------

CCOPT = -m64 -fPIC -fexceptions -DNDEBUG -DIL_STD -g -Wall #-O

# ---------------------------------------------------------------------
# Link options and libraries
# ---------------------------------------------------------------------

CPLEXLIBDIR   = $(CPLEXDIR)/lib/$(SYSTEM)/$(LIBFORMAT)
CONCERTLIBDIR = $(CONCERTDIR)/lib/$(SYSTEM)/$(LIBFORMAT)
CONCERTINCDIR = $(CONCERTDIR)/include
CPLEXINCDIR   = $(CPLEXDIR)/include

CCFLAGS = $(CCOPT) -I$(CPLEXINCDIR) -I$(CONCERTINCDIR) 
CCLNFLAGS = -L$(CPLEXLIBDIR) -lilocplex -lcplex -L$(CONCERTLIBDIR) -lconcert -lm -pthread

#------------------------------------------------------------
#  make all      : to compile the examples. 
#  make execute  : to compile and execute the examples.
#------------------------------------------------------------
all: solver

solver: solver.o
	$(CCC) $(CCFLAGS) solver.o -o solver $(CCLNFLAGS)
solver.o: solver.cpp 
	$(CCC) -c $(CCFLAGS) solver.cpp -o solver.o

# ------------------------------------------------------------

clean :
	/bin/rm -rf *.o *~ *.class
	/bin/rm -rf $(C_EX) $(CPP_EX)
	/bin/rm -rf *.mps *.ord *.sos *.lp *.sav *.net *.msg *.log *.clp solver

# ------------------------------------------------------------
#
# The examples
#
# Local Variables:
# mode: makefile
# End:
